package com.yuyou.tas.lesson.mapper;

import com.yuyou.tas.service.api.admin.entity.CommDataConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


@Mapper
public interface CommDataConfigMapper {
    
    List<CommDataConfig> findUseByCategory(Integer category);

    List<CommDataConfig> findSubject(Map<String , Object> condition);

    List<CommDataConfig> findMaterial(Map<String , Object> condition);
    
    CommDataConfig selectByCode(String code);

    List<CommDataConfig> findSubjectFromClass(@Param(value = "userId") Long userId);
}